-
Notifications
You must be signed in to change notification settings - Fork 323
fix(slider): 修复受控模式下陷入死循环问题 #4170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit: |
Contributor
|
Size Change: +22 B (+0.01%) Total Size: 235 kB
ℹ️ View Unchanged
|
Collaborator
TDesign Component Site Preview Open
|
Contributor
|
Size Change: 0 B Total Size: 482 kB ℹ️ View Unchanged
|
Contributor
|
Size Change: 0 B Total Size: 53.3 kB ℹ️ View Unchanged
|
Collaborator
|
@Boomkaa 单测挂了~ |
Collaborator
Author
正在查看 |
anlyyao
approved these changes
Jan 9, 2026
liweijie0812
pushed a commit
that referenced
this pull request
Jan 13, 2026
* fix(slider): 修复受控模式下陷入死循环问题 * fix: 修复单测问题
liweijie0812
added a commit
that referenced
this pull request
Jan 13, 2026
chore: fix ci chore: fix ci chore: fix ci chore: 删除无效依赖 chore: 删除无效依赖 chore: uni相关依赖归集统一 chore: miniprogram相关依赖归集统一 chore: 调整 build uniapp 时机 fix(slider): 修复受控模式下陷入死循环问题 (#4170) * fix(slider): 修复受控模式下陷入死循环问题 * fix: 修复单测问题 feat(SideBarItem): improve the display logic for prefix and suffix elements of activated items (#4175) docs(uniapp): update site overview (#4173) feat(QRCode): added the init func (#4174) * feat(QRCode): added the init func * chore: use this.createSelectorQuery() instead chore: update build uniap script (#4179) * chore: update build uniap script * chore: update name chore: 废弃文件移除 chore: update package.json chore: upgrade husky to v9 chore: update .husky chore: update deps chore: 整理tdesign 依赖 chore: update deps chore: update deps chore: update deps chore: update deps chore: update deps chore: update deps chore: remove husky chore: remove husky chore: revert chore: update deps chore: update deps ci(pkg-pr-new): update build chore: fix build chore: update deps chore: update deps chore: update deps ci: new auto release (#4180) * ci: new auto release * ci: new auto release * chore: update pr template * chore: fix build chore: add pr changelog (#4181) chore(site): example of separating chat and basic components (#4177) * chore: example of separating chat and basic components * chore(site): update liveUrl for chat site 同步 uniapp 最近改动 (#4187) * chore: 同步uni-app最近改动 * chore: 修复引入问题 chore: update deps chore: update deps chore: update deps fix(collapse): 修复深色模式下面板左侧图标颜色错误 (#4185) * fix(collapse): 修复深色模式下图标颜色 * fix(collapse): 修复深色模式下图标颜色 * fix(CollapsePanel): add --td-collapse-left-icon-color * feat(CollapsePanel): add --td-collapse-disabled-color --------- Co-authored-by: anlyyao <[email protected]> chore(uniapp): sync npm version (#4188) * chore(uni): sync npm version * chore: fix ci * chore: fix ci fix(collapse): 修复深色模式下面板左侧图标颜色错误 (#4185) * fix(collapse): 修复深色模式下图标颜色 * fix(collapse): 修复深色模式下图标颜色 * fix(CollapsePanel): add --td-collapse-left-icon-color * feat(CollapsePanel): add --td-collapse-disabled-color --------- Co-authored-by: anlyyao <[email protected]> chore(uniapp): sync npm version (#4188) * chore(uni): sync npm version * chore: fix ci * chore: fix ci chore: update deps chore: update deps chore: update deps chore: update deps chore: update deps chore: update deps chore: update deps
liweijie0812
added a commit
that referenced
this pull request
Jan 13, 2026
author 黎伟杰 <[email protected]> 1767924819 +0800 committer 黎伟杰 <[email protected]> 1768290413 +0800 parent a85070b author 黎伟杰 <[email protected]> 1767924819 +0800 committer 黎伟杰 <[email protected]> 1768290317 +0800 chore: pnpm catalogs chore: fix ci chore: fix ci chore: fix ci chore: 删除无效依赖 chore: 删除无效依赖 chore: uni相关依赖归集统一 chore: miniprogram相关依赖归集统一 chore: 调整 build uniapp 时机 fix(slider): 修复受控模式下陷入死循环问题 (#4170) * fix(slider): 修复受控模式下陷入死循环问题 * fix: 修复单测问题 feat(SideBarItem): improve the display logic for prefix and suffix elements of activated items (#4175) docs(uniapp): update site overview (#4173) feat(QRCode): added the init func (#4174) * feat(QRCode): added the init func * chore: use this.createSelectorQuery() instead chore: update build uniap script (#4179) * chore: update build uniap script * chore: update name chore: 废弃文件移除 chore: update package.json chore: upgrade husky to v9 chore: update .husky chore: update deps chore: 整理tdesign 依赖 chore: update deps chore: update deps chore: update deps chore: update deps chore: update deps chore: update deps chore: remove husky chore: remove husky chore: revert chore: update deps chore: update deps ci(pkg-pr-new): update build chore: fix build chore: update deps chore: update deps chore: update deps ci: new auto release (#4180) * ci: new auto release * ci: new auto release * chore: update pr template * chore: fix build chore: add pr changelog (#4181) chore(site): example of separating chat and basic components (#4177) * chore: example of separating chat and basic components * chore(site): update liveUrl for chat site 同步 uniapp 最近改动 (#4187) * chore: 同步uni-app最近改动 * chore: 修复引入问题 chore: update deps chore: update deps chore: update deps fix(collapse): 修复深色模式下面板左侧图标颜色错误 (#4185) * fix(collapse): 修复深色模式下图标颜色 * fix(collapse): 修复深色模式下图标颜色 * fix(CollapsePanel): add --td-collapse-left-icon-color * feat(CollapsePanel): add --td-collapse-disabled-color --------- Co-authored-by: anlyyao <[email protected]> chore(uniapp): sync npm version (#4188) * chore(uni): sync npm version * chore: fix ci * chore: fix ci fix(collapse): 修复深色模式下面板左侧图标颜色错误 (#4185) * fix(collapse): 修复深色模式下图标颜色 * fix(collapse): 修复深色模式下图标颜色 * fix(CollapsePanel): add --td-collapse-left-icon-color * feat(CollapsePanel): add --td-collapse-disabled-color --------- Co-authored-by: anlyyao <[email protected]> chore(uniapp): sync npm version (#4188) * chore(uni): sync npm version * chore: fix ci * chore: fix ci chore: update deps chore: update deps chore: update deps chore: update deps chore: update deps chore: update deps chore: update deps fix(slider): 修复受控模式下陷入死循环问题 (#4170) * fix(slider): 修复受控模式下陷入死循环问题 * fix: 修复单测问题 feat(SideBarItem): improve the display logic for prefix and suffix elements of activated items (#4175) feat(QRCode): added the init func (#4174) * feat(QRCode): added the init func * chore: use this.createSelectorQuery() instead chore: update build uniap script (#4179) * chore: update build uniap script * chore: update name ci: new auto release (#4180) * ci: new auto release * ci: new auto release * chore: update pr template * chore: fix build chore: add pr changelog (#4181) chore(site): example of separating chat and basic components (#4177) * chore: example of separating chat and basic components * chore(site): update liveUrl for chat site fix(collapse): 修复深色模式下面板左侧图标颜色错误 (#4185) * fix(collapse): 修复深色模式下图标颜色 * fix(collapse): 修复深色模式下图标颜色 * fix(CollapsePanel): add --td-collapse-left-icon-color * feat(CollapsePanel): add --td-collapse-disabled-color --------- Co-authored-by: anlyyao <[email protected]> chore(uniapp): sync npm version (#4188) * chore(uni): sync npm version * chore: fix ci * chore: fix ci
anlyyao
pushed a commit
that referenced
this pull request
Jan 14, 2026
* parent a85070b author 黎伟杰 <[email protected]> 1767924819 +0800 committer 黎伟杰 <[email protected]> 1768290413 +0800 parent a85070b author 黎伟杰 <[email protected]> 1767924819 +0800 committer 黎伟杰 <[email protected]> 1768290317 +0800 chore: pnpm catalogs chore: fix ci chore: fix ci chore: fix ci chore: 删除无效依赖 chore: 删除无效依赖 chore: uni相关依赖归集统一 chore: miniprogram相关依赖归集统一 chore: 调整 build uniapp 时机 fix(slider): 修复受控模式下陷入死循环问题 (#4170) * fix(slider): 修复受控模式下陷入死循环问题 * fix: 修复单测问题 feat(SideBarItem): improve the display logic for prefix and suffix elements of activated items (#4175) docs(uniapp): update site overview (#4173) feat(QRCode): added the init func (#4174) * feat(QRCode): added the init func * chore: use this.createSelectorQuery() instead chore: update build uniap script (#4179) * chore: update build uniap script * chore: update name chore: 废弃文件移除 chore: update package.json chore: upgrade husky to v9 chore: update .husky chore: update deps chore: 整理tdesign 依赖 chore: update deps chore: update deps chore: update deps chore: update deps chore: update deps chore: update deps chore: remove husky chore: remove husky chore: revert chore: update deps chore: update deps ci(pkg-pr-new): update build chore: fix build chore: update deps chore: update deps chore: update deps ci: new auto release (#4180) * ci: new auto release * ci: new auto release * chore: update pr template * chore: fix build chore: add pr changelog (#4181) chore(site): example of separating chat and basic components (#4177) * chore: example of separating chat and basic components * chore(site): update liveUrl for chat site 同步 uniapp 最近改动 (#4187) * chore: 同步uni-app最近改动 * chore: 修复引入问题 chore: update deps chore: update deps chore: update deps fix(collapse): 修复深色模式下面板左侧图标颜色错误 (#4185) * fix(collapse): 修复深色模式下图标颜色 * fix(collapse): 修复深色模式下图标颜色 * fix(CollapsePanel): add --td-collapse-left-icon-color * feat(CollapsePanel): add --td-collapse-disabled-color --------- Co-authored-by: anlyyao <[email protected]> chore(uniapp): sync npm version (#4188) * chore(uni): sync npm version * chore: fix ci * chore: fix ci fix(collapse): 修复深色模式下面板左侧图标颜色错误 (#4185) * fix(collapse): 修复深色模式下图标颜色 * fix(collapse): 修复深色模式下图标颜色 * fix(CollapsePanel): add --td-collapse-left-icon-color * feat(CollapsePanel): add --td-collapse-disabled-color --------- Co-authored-by: anlyyao <[email protected]> chore(uniapp): sync npm version (#4188) * chore(uni): sync npm version * chore: fix ci * chore: fix ci chore: update deps chore: update deps chore: update deps chore: update deps chore: update deps chore: update deps chore: update deps fix(slider): 修复受控模式下陷入死循环问题 (#4170) * fix(slider): 修复受控模式下陷入死循环问题 * fix: 修复单测问题 feat(SideBarItem): improve the display logic for prefix and suffix elements of activated items (#4175) feat(QRCode): added the init func (#4174) * feat(QRCode): added the init func * chore: use this.createSelectorQuery() instead chore: update build uniap script (#4179) * chore: update build uniap script * chore: update name ci: new auto release (#4180) * ci: new auto release * ci: new auto release * chore: update pr template * chore: fix build chore: add pr changelog (#4181) chore(site): example of separating chat and basic components (#4177) * chore: example of separating chat and basic components * chore(site): update liveUrl for chat site fix(collapse): 修复深色模式下面板左侧图标颜色错误 (#4185) * fix(collapse): 修复深色模式下图标颜色 * fix(collapse): 修复深色模式下图标颜色 * fix(CollapsePanel): add --td-collapse-left-icon-color * feat(CollapsePanel): add --td-collapse-disabled-color --------- Co-authored-by: anlyyao <[email protected]> chore(uniapp): sync npm version (#4188) * chore(uni): sync npm version * chore: fix ci * chore: fix ci * chore: revert change * chore: pnpm catalogs * chore: shamefullyHoist 配置移动 pnpm-workspace.yaml * chore: 升级 eslint 到 v8 * chore: 统一eslint 相关依赖版本 * chore: 统一 eslint-plugin-prettier 依赖版本 * chore: 统一 vue 依赖版本 * chore: 统一 vite 依赖版本 * chore: 统一 typescript 相关依赖版本 * chore: 统一 stylelint-config-standard 依赖版本 * chore: 统一 eslint-plugin-vue 依赖版本 * chore: 统一 @vue/runtime-core 依赖版本 * chore: 统一 vue-router 依赖版本 * chore: 统一 vitest 相关依赖版本
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

🤔 这个 PR 的性质是?
🔗 相关 Issue
fix #4164
💡 需求背景和解决方案
需求背景: 受控 + 双游标滑块场景出现死循环。
解决方案:1、数组引用比较失效,需要使用JSON.stringify;2、value observer 中不要触发change事件。
📝 更新日志
fix(Slider): 修复受控 + 双游标滑块模式下陷入死循环的问题
本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单